Skip to content

[CRE-491] Used moved FeedID from chainlink-common#22383

Merged
pavel-raykov merged 5 commits into
developfrom
move-feedid
May 12, 2026
Merged

[CRE-491] Used moved FeedID from chainlink-common#22383
pavel-raykov merged 5 commits into
developfrom
move-feedid

Conversation

@pavel-raykov
Copy link
Copy Markdown
Collaborator

@pavel-raykov pavel-raykov commented May 11, 2026

Copilot AI review requested due to automatic review settings May 11, 2026 17:57
@pavel-raykov pavel-raykov requested review from a team as code owners May 11, 2026 17:57
@pavel-raykov pavel-raykov marked this pull request as draft May 11, 2026 17:58
@github-actions
Copy link
Copy Markdown
Contributor

👋 pavel-raykov, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

✅ No conflicts with other open PRs targeting develop

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Risk Rating: LOW–MEDIUM (mechanical type migration + dependency bumps, but touches Mercury/OCR2 wiring paths)

This PR updates Chainlink to use the moved Mercury FeedID/FeedVersion types from chainlink-common (instead of chainlink-data-streams/mercury/utils) and bumps chainlink-common + chainlink-data-streams versions accordingly, keeping Mercury plugin/config/telemetry paths consistent with upstream changes.

Changes:

  • Bump github.com/smartcontractkit/chainlink-common and github.com/smartcontractkit/chainlink-data-streams versions across root, deployment, scripts, and test modules (plus plugin gitRef).
  • Migrate Mercury feed identifiers/version constants to chainlink-common/pkg/types/mercury in EVM Mercury v2/v3/v4 data sources, provider wiring, OCR2 Mercury plugin, and enhanced telemetry.
  • Update tests to use the new FeedID type and t.Context().

Scrupulous human review areas:

  • core/services/ocr2/delegate.go: feedID casting into the Mercury plugin service constructor (ensures the on-chain feedID representation matches the new mercurytypes.FeedID expectations).
  • core/services/relay/evm/mercury_provider.go: codec selection by feedID.Version() (any mismatch in version parsing would route to the wrong report codec).
  • core/services/ocrcommon/telemetry.go + core/services/llo/telem/telemetry.go: FeedVersion propagation into telemetry parsing (ensures correct parsing logic selection for bridge task telemetry).

Reviewed changes

Copilot reviewed 21 out of 28 changed files in this pull request and generated no comments.

Show a summary per file
File Description
system-tests/tests/go.mod Bumps chainlink-common and chainlink-data-streams versions for system test module.
system-tests/tests/go.sum Updates checksums for the bumped dependencies.
system-tests/lib/go.mod Bumps chainlink-common and indirect chainlink-data-streams in system-tests lib module.
system-tests/lib/go.sum Updates checksums for the bumped dependencies.
plugins/plugins.public.yaml Updates Mercury streams plugin gitRef to the new chainlink-data-streams version.
integration-tests/load/go.mod Bumps chainlink-common and indirect chainlink-data-streams for load tests module.
integration-tests/load/go.sum Updates checksums for the bumped dependencies.
integration-tests/go.mod Bumps chainlink-common and indirect chainlink-data-streams for integration tests module.
integration-tests/go.sum Updates checksums for the bumped dependencies.
go.mod Bumps root module chainlink-common and chainlink-data-streams requirements.
go.sum Updates checksums for the bumped dependencies.
deployment/go.mod Bumps chainlink-common and indirect chainlink-data-streams in deployment module.
deployment/go.sum Updates checksums for the bumped dependencies.
core/scripts/go.mod Bumps chainlink-common and chainlink-data-streams in scripts module.
core/scripts/go.sum Updates checksums for the bumped dependencies.
core/services/relay/evm/mercury/v2/data_source.go Replaces mercury/utils FeedID/FeedVersion usage with chainlink-common Mercury types/constants.
core/services/relay/evm/mercury/v2/data_source_test.go Updates tests to use new FeedID type and t.Context().
core/services/relay/evm/mercury/v3/data_source.go Same migration for Mercury v3 datasource + FeedVersion constant usage.
core/services/relay/evm/mercury/v3/data_source_test.go Updates tests to use new FeedID type and t.Context().
core/services/relay/evm/mercury/v4/data_source.go Same migration for Mercury v4 datasource + FeedVersion constant usage.
core/services/relay/evm/mercury/v4/data_source_test.go Updates tests to use new FeedID type and t.Context().
core/services/relay/evm/mercury_provider.go Updates feedID type used for codec selection and report decoding plumbing.
core/services/ocrcommon/telemetry.go Migrates enhanced telemetry structs/functions to chainlink-common Mercury FeedVersion.
core/services/ocr2/plugins/mercury/plugin.go Updates plugin service wiring to accept/use chainlink-common Mercury FeedID.
core/services/ocr2/plugins/mercury/plugin_test.go Updates tests to use chainlink-common Mercury FeedID.
core/services/ocr2/plugins/mercury/config/config.go Updates plugin config schema to use *mercury.FeedID and validation signature accordingly.
core/services/ocr2/delegate.go Updates Mercury service construction to cast to chainlink-common Mercury FeedID.
core/services/llo/telem/telemetry.go Updates legacy Mercury telemetry path to use chainlink-common FeedVersion constant.

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented May 11, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@pavel-raykov pavel-raykov marked this pull request as ready for review May 11, 2026 19:23
@pavel-raykov
Copy link
Copy Markdown
Collaborator Author

.cora

@pavel-raykov pavel-raykov requested a review from jmank88 May 11, 2026 19:23
@pavel-raykov pavel-raykov enabled auto-merge May 11, 2026 19:26
@cl-sonarqube-production
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
10.2% Duplication on New Code (required ≤ 10%)

See analysis details on SonarQube

@pavel-raykov pavel-raykov added this pull request to the merge queue May 12, 2026
Merged via the queue into develop with commit acf7033 May 12, 2026
256 of 292 checks passed
@pavel-raykov pavel-raykov deleted the move-feedid branch May 12, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants